package com.njtoyo.taxi.admin.mapper.master.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.njtoyo.taxi.admin.mapper.master.enums.DriverWithdrawState;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author Dell
 * @since 2021-11-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "DriverWithdraw对象", description = "")
public class DriverWithdraw implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long driverId;

    private BigDecimal amount;

    private Long bankId;

    @ApiModelProperty(value = "0:init,1:operated,2:done,3:cancelled,4:failed,5:rejected,6:front_end_done")
    private DriverWithdrawState state;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedAt;


    private String batchNo;

    private String msg;
    private String serialNo;


    /**
     * 银行流水号
     */
    private String bankSerialNo;

    /**
     * 打款
     */
    private Date withdrawTime;

    /**
     * 到账时间
     */
    private String receiptTime;
}
